/*
package com.artisan.common.enums;

*/
/**
 * Created by yang on 2017/6/17.
 *//*

public enum OrderStateEnum{
    WAIT_PAY(1,"等待业主付款"),
    WRIT_DISPATCH(2,"已支付"),
    ALREADY_DISPATCH(3,"师傅已接单"),
    WORKER_CONFIRM(4,"师傅已确认"),
    CUSTOMER_CONFIRM(5, "用户已确认"),
    FINISH(6,"已完成服务"),
    WAIT_RETURN(7,"待退款"),
    RETURN(8,"已退款"),
    CLOSE(9,"结算");



    private final Integer value;

    private final String message;

    */
/**
     * 私有构造函数
     * @param value
     * @param message
     *//*

    private OrderStateEnum(Integer value, String message) {
        this.value = value;
        this.message = message;
    }

    public Integer getValue() {
        return value;
    }

    public String getMessage() {
        return message;
    }

    */
/**
     * 通过枚举<code>value</code>获得枚举
     *
     * @param value
     * @return
     *//*

    public static OrderStateEnum getByValue(String value) {
        for (OrderStateEnum channelType : values()) {
            if (channelType.getValue().toString().equals(value)) {
                return channelType;
            }
        }
        return null;
    }

    @Override
    public String toString() {
        return value + "|" + message;
    }

    public static boolean isValidIntegerValue(Integer value) {
        for (OrderStateEnum channelType : values()) {
            if (channelType.getValue().equals(value)) {
                return true;
            }
        }
        return false;
    }



}
*/
